package com.woniuxy.system.controller;


import com.woniuxy.resultCode.Result;
import com.woniuxy.system.entity.AssessmentCycle;
import com.woniuxy.system.service.AssessmentCycleService;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 考核周期表 前端控制器
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@RestController
@RequestMapping("/system/assessmentCycle")
@RequiresAuthentication
public class AssessmentCycleController {
    @Autowired
    AssessmentCycleService assessmentCycleService;
    @GetMapping("/list")
    Result list(){
        List<AssessmentCycle> list = assessmentCycleService.list();
        return Result.ok().data("msg",list);
    }
}

